#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b;
	c = (b % 10) * 100 + ((b % 100) / 10) * 10 + b / 100;
	cout << a + c << endl;
	return 0;
}
